package com.kk.init;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Component;

/**
 * 12.销毁Bean.
 *
 * <p>
 * .
 *
 * @author little_lunatic
 * @date 2023-08-10
 */
@Slf4j
@Component
public class TestDisposableBean implements DisposableBean {
    @Override
    public void destroy() throws Exception {
        log.info("12.{} destroy bean.", TestDisposableBean.class);
    }
}
